import { Collapse } from 'antd'
/*

collapse 折叠面板

        defaultActiveKey  初始化选中面板的 key
        items             折叠项目内容
        onChange          切换面板的回调

const panels = [
    {
      key: '1',
      label: 'Panel 1',
      children: <p>This is the content for Panel 1.</p>,
    }
]
<CollapseComponent items={items} defaultActiveKey={defaultActiveKey} onChange={onChange}/>
*/
const CollapseComponent = ({ items, defaultActiveKey, onChange, ...props }) => {
  return <Collapse items={items} defaultActiveKey={defaultActiveKey} onChange={onChange} {...props}></Collapse>
}

export default CollapseComponent
